package com.etrans.web.gps.business.report.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.etrans.web.gps.base.service.BaseService;
import com.etrans.web.gps.business.report.domain.ProcessingStatistics;

@Service
public class GovernmentProcessingStatisticsService extends BaseService{

	/**
	 * 运维人员处警统计(柱形图)
	 * @param paramsMap
	 * @return
	 */
	public List<HashMap<String, Object>> queryProcessingPersonnelStatistics(HashMap<String, Object> paramsMap) {
		List<HashMap<String, Object>> list = selectList("governmentprocessingStatisticsQuery.queryProcessingPersonnelStatistics", paramsMap);
		return list;
	}
	
	/**
	 * 处理类型（圆形）
	 * @param paramsMap
	 * @return
	 */
	public List<HashMap<String, Object>> queryProcessingTypeStatistics(HashMap<String, Object> paramsMap) {
		List<HashMap<String, Object>> list = selectList("governmentprocessingStatisticsQuery.queryProcessingTypeStatistics", paramsMap);
		return list;
	}
	
	/**
	 * 通知类型分布（柱状图）
	 * @param paramsMap
	 * @return
	 */
	public List<HashMap<String, Object>> queryBarListByAreaName(HashMap<String, Object> paramsMap) {
		List<HashMap<String, Object>> list = selectList("governmentprocessingStatisticsQuery.queryBarListByAreaName", paramsMap);
		return list;
	}
	
	/**
	 * 列表
	 * @param paramsMap
	 * @return
	 */
	public List<ProcessingStatistics> queryProcessingStatisticsListByAreaName(HashMap<String, Object> paramsMap) {
		List<ProcessingStatistics> list = selectList("governmentprocessingStatisticsQuery.queryProcessingStatisticsListByAreaName", paramsMap);
		return list;
	}
	
	public Integer queryProcessingStatisticsListCount(HashMap<String, Object> paramMap) {
		Integer total=(Integer) this.selectOne("governmentprocessingStatisticsQuery.queryProcessingStatisticsListCount", paramMap);
		return total;
	}
	
	/**
	 * 报警类型列表
	 * @param paramsMap
	 * @return
	 */
	public List<HashMap<String, Object>> queryAllAlarmType() {
		List<HashMap<String, Object>> list = selectList("governmentprocessingStatisticsQuery.queryAllAlarmType", null);
		return list;
	}
	
	
}
